3.6.27 \(\int \frac {a+b \log (c (d (e+f x)^p)^q)}{(g+h x) (i+j x)} \, dx\) [527]

Optimal. Leaf size=165 \[ \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{h i-g j}-\frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (i+j x)}{f i-e j}\right )}{h i-g j}+\frac {b p q \text {Li}_2\left (-\frac {h (e+f x)}{f g-e h}\right )}{h i-g j}-\frac {b p q \text {Li}_2\left (-\frac {j (e+f x)}{f i-e j}\right )}{h i-g j} \]

[Out]

(a+b*ln(c*(d*(f*x+e)^p)^q))*ln(f*(h*x+g)/(-e*h+f*g))/(-g*j+h*i)-(a+b*ln(c*(d*(f*x+e)^p)^q))*ln(f*(j*x+i)/(-e*j
+f*i))/(-g*j+h*i)+b*p*q*polylog(2,-h*(f*x+e)/(-e*h+f*g))/(-g*j+h*i)-b*p*q*polylog(2,-j*(f*x+e)/(-e*j+f*i))/(-g
*j+h*i)

________________________________________________________________________________________

Rubi [A]
time = 0.31, antiderivative size = 165, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {2465, 2441, 2440, 2438, 2495} \begin {gather*} \frac {b p q \text {PolyLog}\left (2,-\frac {h (e+f x)}{f g-e h}\right )}{h i-g j}-\frac {b p q \text {PolyLog}\left (2,-\frac {j (e+f x)}{f i-e j}\right )}{h i-g j}+\frac {\log \left (\frac {f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h i-g j}-\frac {\log \left (\frac {f (i+j x)}{f i-e j}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h i-g j} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Log[c*(d*(e + f*x)^p)^q])/((g + h*x)*(i + j*x)),x]

[Out]

((a + b*Log[c*(d*(e + f*x)^p)^q])*Log[(f*(g + h*x))/(f*g - e*h)])/(h*i - g*j) - ((a + b*Log[c*(d*(e + f*x)^p)^
q])*Log[(f*(i + j*x))/(f*i - e*j)])/(h*i - g*j) + (b*p*q*PolyLog[2, -((h*(e + f*x))/(f*g - e*h))])/(h*i - g*j)
 - (b*p*q*PolyLog[2, -((j*(e + f*x))/(f*i - e*j))])/(h*i - g*j)

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2440

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + c*e*(x/g)])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2441

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((f + g
*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])/g), x] - Dist[b*e*(n/g), Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2465

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{u = ExpandIntegrand[
(a + b*Log[c*(d + e*x)^n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n}, x] && RationalFunct
ionQ[RFx, x] && IntegerQ[p]

Rule 2495

Int[((a_.) + Log[(c_.)*((d_.)*((e_.) + (f_.)*(x_))^(m_.))^(n_)]*(b_.))^(p_.)*(u_.), x_Symbol] :> Subst[Int[u*(
a + b*Log[c*d^n*(e + f*x)^(m*n)])^p, x], c*d^n*(e + f*x)^(m*n), c*(d*(e + f*x)^m)^n] /; FreeQ[{a, b, c, d, e,
f, m, n, p}, x] &&  !IntegerQ[n] &&  !(EqQ[d, 1] && EqQ[m, 1]) && IntegralFreeQ[IntHide[u*(a + b*Log[c*d^n*(e
+ f*x)^(m*n)])^p, x]]

Rubi steps

\begin {align*} \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x) (527+j x)} \, dx &=\text {Subst}\left (\int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{(g+h x) (527+j x)} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\int \left (\frac {h \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{(527 h-g j) (g+h x)}-\frac {j \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{(527 h-g j) (527+j x)}\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\frac {h \int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{g+h x} \, dx}{527 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {j \int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{527+j x} \, dx}{527 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{527 h-g j}-\frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (527+j x)}{527 f-e j}\right )}{527 h-g j}-\text {Subst}\left (\frac {(b f p q) \int \frac {\log \left (\frac {f (g+h x)}{f g-e h}\right )}{e+f x} \, dx}{527 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(b f p q) \int \frac {\log \left (\frac {f (527+j x)}{527 f-e j}\right )}{e+f x} \, dx}{527 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{527 h-g j}-\frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (527+j x)}{527 f-e j}\right )}{527 h-g j}-\text {Subst}\left (\frac {(b p q) \text {Subst}\left (\int \frac {\log \left (1+\frac {h x}{f g-e h}\right )}{x} \, dx,x,e+f x\right )}{527 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(b p q) \text {Subst}\left (\int \frac {\log \left (1+\frac {j x}{527 f-e j}\right )}{x} \, dx,x,e+f x\right )}{527 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{527 h-g j}-\frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (527+j x)}{527 f-e j}\right )}{527 h-g j}+\frac {b p q \text {Li}_2\left (-\frac {h (e+f x)}{f g-e h}\right )}{527 h-g j}-\frac {b p q \text {Li}_2\left (-\frac {j (e+f x)}{527 f-e j}\right )}{527 h-g j}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 117, normalized size = 0.71 \begin {gather*} \frac {\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \left (\log \left (\frac {f (g+h x)}{f g-e h}\right )-\log \left (\frac {f (i+j x)}{f i-e j}\right )\right )+b p q \text {Li}_2\left (\frac {h (e+f x)}{-f g+e h}\right )-b p q \text {Li}_2\left (\frac {j (e+f x)}{-f i+e j}\right )}{h i-g j} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Log[c*(d*(e + f*x)^p)^q])/((g + h*x)*(i + j*x)),x]

[Out]

((a + b*Log[c*(d*(e + f*x)^p)^q])*(Log[(f*(g + h*x))/(f*g - e*h)] - Log[(f*(i + j*x))/(f*i - e*j)]) + b*p*q*Po
lyLog[2, (h*(e + f*x))/(-(f*g) + e*h)] - b*p*q*PolyLog[2, (j*(e + f*x))/(-(f*i) + e*j)])/(h*i - g*j)

________________________________________________________________________________________

Maple [F]
time = 0.40, size = 0, normalized size = 0.00 \[\int \frac {a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )}{\left (h x +g \right ) \left (j x +i \right )}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*(d*(f*x+e)^p)^q))/(h*x+g)/(j*x+i),x)

[Out]

int((a+b*ln(c*(d*(f*x+e)^p)^q))/(h*x+g)/(j*x+i),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g)/(j*x+i),x, algorithm="maxima")

[Out]

-a*(log(h*x + g)/(g*j - I*h) - log(j*x + I)/(g*j - I*h)) + b*integrate((q*log(d) + log(((f*x + e)^p)^q) + log(
c))/(h*j*x^2 + (g*j + I*h)*x + I*g), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g)/(j*x+i),x, algorithm="fricas")

[Out]

integral((b*p*q*log(f*x + e) + b*q*log(d) + b*log(c) + a)/(h*j*x^2 + (g*j + I*h)*x + I*g), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}}{\left (g + h x\right ) \left (i + j x\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*(d*(f*x+e)**p)**q))/(h*x+g)/(j*x+i),x)

[Out]

Integral((a + b*log(c*(d*(e + f*x)**p)**q))/((g + h*x)*(i + j*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g)/(j*x+i),x, algorithm="giac")

[Out]

integrate((b*log(((f*x + e)^p*d)^q*c) + a)/((h*x + g)*(j*x + I)), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )}{\left (g+h\,x\right )\,\left (i+j\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*log(c*(d*(e + f*x)^p)^q))/((g + h*x)*(i + j*x)),x)

[Out]

int((a + b*log(c*(d*(e + f*x)^p)^q))/((g + h*x)*(i + j*x)), x)

________________________________________________________________________________________